<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://" + request.getServerName() + ":"
      + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-CN" />
<meta name="Keywords" content="关键词1,关键词2，关键词3,关键词4,……" />
<meta name="Description" content="你网页的简述" />
<meta name="Robots" content="All" />
<meta name="Generator" content="Dreamweaver" />
<title>查询结果</title>
<link href="<%=path%>/static/css/css.css" rel="stylesheet" type="text/css" />
</head>
<script language="JavaScript">
	function t() {
		var t = ${not empty requestScope.list ? "false" : "true"};
		if(t==true){
			
		}else{
			var begin = $("#begin").attr("href");
			var next = $("#next").attr("href");
			var pre = $("#pre").attr("href");
			var end = $("#end").attr("href");
			var go = $("#go").attr("action");
			begin = begin + "&list=${requestScope.list}";
			next = next + "&list=${requestScope.list}";
			pre = pre + "&list=${requestScope.list}";
			end = end + "&list=${requestScope.list}";
			go = go + "&list=${requestScope.list}";
			$("#begin").attr("href",begin);
			$("#next").attr("href",next);
			$("#pre").attr("href",pre);
			$("#end").attr("href",end);
			$("#go").attr("action",go);
		}
			
	}
</script>

<body onload="t()">
<h3 id="subTitle">查询结果</h3>
<ul id="button">
	<li><a href="javascript:history.back()">返回</a></li>
</ul>
<form action="<%=path%>/bookFeeServlet?status=gopay" method="post" name="form1" id="form1">
	<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="table2">
		<tr align="center" class="within2bg">
			<td colspan="7" class="no_note"><h6>查询结果:<h6></td>
		</tr>
	</table>
	<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" class="table" style="margin-top:10px;">
		<tr align="center" class="within2bg">
			<td colspan="7" class="no_note">班级信息：</td>
		</tr>
		<tr>
			<th width="10%" align="center" nowrap="nowrap" class="title2">班级名称</th>
			<th width="10%" align="center" nowrap="nowrap" class="title2">所属类别</th>
			<th width="10%" align="center" nowrap="nowrap" class="title2">所属层次</th>
			<th width="10%" align="center" nowrap="nowrap" class="title2">所属专业</th>
			<th width="5%" align="center" nowrap="nowrap" class="title2">人数</th>
			<th width="40%" align="center" nowrap="nowrap" class="title2">备注</th>
		</tr>
		<tr class="within2bg">
			<td align="center">${requestScope.bj.getName()}</td>
			<td align="center">${requestScope.bj.getCategory().getName() }</td>
			<td align="center">${requestScope.bj.getLevel().getName() }</td>
			<td align="center">${requestScope.bj.getMajor().getName() }</td>
			<td align="center">${requestScope.bj.getStudents().size() }</td>
			<td align="left">${requestScope.bj.getRemark() }</td>
		</tr>
	</table>
	<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" class="table" style="margin-top:10px;">
		<tr align="center" class="within2bg">
			<td colspan="7" class="no_note">班级成员列表：</td>
		</tr>
		<tr>
			<th width="20%" align="center" nowrap="nowrap" class="title2">学号</th>
			<th width="20%" align="center" nowrap="nowrap" class="title2">姓名</th>
			<th width="10%" align="center" nowrap="nowrap" class="title2">性别</th>
			<th width="20%" align="center" nowrap="nowrap" class="title2">总已交金额(元)</th>
			<th width="15%" align="center" nowrap="nowrap" class="title2">选中</th>
		</tr>
		<c:forEach var="qbookfee" items="${requestScope.pageResults.getResults() }" varStatus="id">
		<tr class="within2bg">
			<td align="center">${qbookfee.getStudent().getNum()}</td>
			<td align="center">${qbookfee.getStudent().getSname()}</td>
			<td align="center">${qbookfee.getStudent().getSex()}</td>
			<td align="center">${qbookfee.getTotalPayFee()}</a></td>
			<td align="center" nowrap="nowrap" class="within2bg">
			<input type="checkbox" name="checkbox" value="${qbookfee.getId()}" /></td>
		</tr>
		</c:forEach>
		
				<c:if test="${requestScope.pageResults.getPageCount()==0}">
        <tr align="center" class="within2bg">
            <td colspan="7" class="no_note">没有符合条件的记录</td>
        </tr>
        </c:if>
		
	</table>
	<table width="90%" border="0" align="center" cellpadding="3"
		cellspacing="0" id="page">
		<tr>
			<td align="right">共有记录 ${requestScope.pageResults.getTotalCount()}条 第 ${requestScope.pageResults.getCurrentPage()}/ ${requestScope.pageResults.getPageCount()}页 
			<a href="<%=path%>/bookFeeServlet?status=${requestScope.status}&pre=${requestScope.pre}&currentPage=0" id="begin">首页</a>
			<a href="<%=path%>/bookFeeServlet?status=${requestScope.status}&pre=${requestScope.pre}&currentPage=${requestScope.pageResults.getCurrentPage()-1}" id="pre" >上一页</a>
			<a href="<%=path%>/bookFeeServlet?status=${requestScope.status}&pre=${requestScope.pre}&currentPage=${requestScope.pageResults.getPageNo()}" id="next">下一页</a> 
			<a href="<%=path%>/bookFeeServlet?status=${requestScope.status}&pre=${requestScope.pre}&currentPage=${requestScope.pageResults.getPageCount()}" id="end">末页</a> 
			
			</td>
		</tr>
	</table>
	<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="table2">
		<tr>
			<td align="center" colspan="3"><input  type="submit" class="bevel" value="确定" />
				<input name="Submit3" type="reset" class="bevel" value="取消"/></td>
		</tr>
	</table>
</form>
</body>
</html>